define(['durandal/app', 'durandal/system', 'knockout', 'plugins/router'], function (app, system, ko, router) {
    var childRouter = router
        .createChildRouter()
        .makeRelative({ moduleId:'lab', fromParent:true, dynamicHash:':id'})
        .map([
            { route: ['notice', ''], moduleId: 'notice/notice',  title: '通知', nav: true, className: 'glyphicon glyphicon-envelope', href: 'notice' },
            { route:'document',       moduleId:'document/document',  title:'文档', nav:true, className: 'glyphicon glyphicon-file' },
            { route:'order',        moduleId:'order/order',   title:'订单',  nav:true, className: 'glyphicon glyphicon-shopping-cart' },
            { route:'inventory',        moduleId:'inventory/inventory',   title:'库存',  nav:true, className: 'glyphicon glyphicon-list-alt' },
            { route:'share',        moduleId:'share/share',   title:'共享设备',  nav:true, className: 'glyphicon glyphicon-calendar' }
        ]).buildNavigationModel();

    return {
        router: childRouter
    };
});